package com.sacc.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 滚~韬
 * @date 2022/4/2 12:12
 */
@Data
@TableName("box_haved")
public class BoxHaved {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("box_name")
    private String boxName;//蜂箱名字
    @TableField("box_desc")
    private String boxDesc;//蜂箱描述
    @TableField("box_id")
    private Integer boxId;//蜂箱id
    @TableField("name")
    private String name;//用户姓名
    @TableField("open_id")
    private String openId;//用户id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;
}
